import { setQuestNameSpace } from "./api/lantern/classicQuest";
import { setModId, setModName } from "./types";
import { disabledWatchdog } from "./utils";

/**
 * Initialize the mod.
 * @param id Id of the mod.
 * @param name Name of the mod.
 * @param opitons Additional options for the mod.
 */
export function initializeMod(id: string, name: string, opitons?: modOptions) {
  setModId(id);
  setModName(name);
  if (opitons?.questNameSpace) {
    setQuestNameSpace(opitons.questNameSpace);
  }
  if (opitons?.jobNameSpace) {
  }
  if (opitons?.watchdogDisabled) {
    disabledWatchdog();
  }
}

/**
 * Additional options for the mod.
 */
export interface modOptions {
  /**
   * Namespace of Quest Complete Tag.
   */
  questNameSpace?: string;
  /**
   * Namespace of Job Tag.
   */
  jobNameSpace?: string;
  /**
   * Disabled Watchdog.
   */
  watchdogDisabled?: boolean;
}
